package com.jianhua.backend.domain.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

/**
 * <p>
 * 记录订单处理过程中的异常情况
 * </p>
 *
 * @author author
 * @since 2025-07-02
 */
@Getter
@Setter
@ToString
@TableName("exception_records")
public class ExceptionRecords implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 记录ID
     */
    @TableId(value = "record_id", type = IdType.AUTO)
    private Integer recordId;

    /**
     * 关联订单ID
     */
    @TableField("order_id")
    private Integer orderId;

    /**
     * 异常类型（缺货/延迟/质量问题等）
     */
    @TableField("exception_type")
    private String exceptionType;

    /**
     * 异常描述
     */
    @TableField("description")
    private String description;

    /**
     * 处理人员ID
     */
    @TableField("handler_id")
    private Integer handlerId;

    /**
     * 处理状态
     */
    @TableField("status")
    private String status;

    /**
     * 解决方案
     */
    @TableField("solution")
    private String solution;
}
